package action_行为型.command_pattern_命令模式;

/**
 * Created with IntelliJ IDEA.
 *
 * @Auther: hihi
 * @Date: 2020/07/07/20:33
 * @Description:
 */
public class CommandPatternDemo {
	public static void main(String[] args) {
		Task1 task1 = new Task1();
		Task2 task2 = new Task2();
		Broker broker = new Broker();
		broker.takeOrder(task1);
		broker.takeOrder(task2);
		broker.placeOrders();
	}
}
